<template>
  <div>
    <button v-on:click="counter += 1">Add 1</button>
    <p>{{ counter }}</p>
    <button v-on:click="greet">Greet</button>
    <button v-on:click.right="greet">Greet</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      counter: 0
    }
  },
  methods: {
    greet (event) {
      alert(event.target.tagName)
    }
  }
 }
</script>

<style lang="less" scoped>
</style>